﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Framework.Orm.Entity;

namespace Framework.Orm.Attributes
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
    public class TableAttribute : Attribute
    {
        /// <summary>
        /// 名字
        /// </summary>
        public string Name
        {
            get;
            set;
        }

        /// <summary>
        /// 目录
        /// </summary>
        public string Catalog
        {
            get;
            set;
        }

        /// <summary>
        /// Schema
        /// </summary>
        public string Schema
        {
            get;
            set;
        }

        /// <summary>
        /// 通过此构造函数构造出的实体，可获取出对应特性
        /// </summary>
        /// <param name="entity"></param>
        public TableAttribute(BaseEntity entity)
        {
        }
    }
}
